package com.imooc.seataorder;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description :
 * @Author : YTY
 * @Date : 2021-02-12 15:02
 */

@FeignClient(name = "seata-product", url = "http://localhost:8086")
public interface ProductFeignClient {

    @GetMapping("/deduct")
    Boolean deduct(@RequestParam("productId") Long productId,
                   @RequestParam("count") Integer count);

}
